package com.cq.hd.task.web.job;

import com.cq.hd.order.api.TbOrderSettleBillApi;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 汇付转账重试
 *
 * @author much
 * @since 2024/04/30 23:23
 */
@Component
@Slf4j
public class HfTransferRetryTask {

    @Resource
    private TbOrderSettleBillApi orderSettleBillApi;

    @XxlJob("merchantAmtTransferRetry")
    public void merchantAmtTransferRetry() {
        log.info("商家本金转账失败重试=====>开始");
        orderSettleBillApi.merchantAmtTransferRetry();
        log.info("商家本金转账失败重试=====>结束");
    }

}
